﻿using System;
using System.Collections.Generic;
using System.Linq;
using AutoR.Helpers;

namespace AutoR.Models
{
	// Token: 0x020001DD RID: 477
	public class PVEExploreLevelConfig
	{
		// Token: 0x1700029D RID: 669
		// (get) Token: 0x060009EA RID: 2538 RVA: 0x0006B062 File Offset: 0x00069262
		// (set) Token: 0x060009EB RID: 2539 RVA: 0x0006B06A File Offset: 0x0006926A
		public int id { get; set; }

		// Token: 0x1700029E RID: 670
		// (get) Token: 0x060009EC RID: 2540 RVA: 0x0006B073 File Offset: 0x00069273
		// (set) Token: 0x060009ED RID: 2541 RVA: 0x0006B07B File Offset: 0x0006927B
		public string title { get; set; }

		// Token: 0x1700029F RID: 671
		// (get) Token: 0x060009EE RID: 2542 RVA: 0x0006B084 File Offset: 0x00069284
		// (set) Token: 0x060009EF RID: 2543 RVA: 0x0006B08C File Offset: 0x0006928C
		public Dictionary<string, int> award { get; set; }

		// Token: 0x170002A0 RID: 672
		// (get) Token: 0x060009F0 RID: 2544 RVA: 0x0006B095 File Offset: 0x00069295
		// (set) Token: 0x060009F1 RID: 2545 RVA: 0x0006B09D File Offset: 0x0006929D
		public int[] pruductGoods { get; set; }

		// Token: 0x170002A1 RID: 673
		// (get) Token: 0x060009F2 RID: 2546 RVA: 0x0006B0A6 File Offset: 0x000692A6
		// (set) Token: 0x060009F3 RID: 2547 RVA: 0x0006B0AE File Offset: 0x000692AE
		public int needFlagShipLevel { get; set; }

		// Token: 0x170002A2 RID: 674
		// (get) Token: 0x060009F4 RID: 2548 RVA: 0x0006B0B7 File Offset: 0x000692B7
		// (set) Token: 0x060009F5 RID: 2549 RVA: 0x0006B0BF File Offset: 0x000692BF
		public int needShipNum { get; set; }

		// Token: 0x170002A3 RID: 675
		// (get) Token: 0x060009F6 RID: 2550 RVA: 0x0006B0C8 File Offset: 0x000692C8
		// (set) Token: 0x060009F7 RID: 2551 RVA: 0x0006B0D0 File Offset: 0x000692D0
		public TypeAndNum[] needShipType { get; set; }

		// Token: 0x170002A4 RID: 676
		// (get) Token: 0x060009F8 RID: 2552 RVA: 0x0006B0D9 File Offset: 0x000692D9
		// (set) Token: 0x060009F9 RID: 2553 RVA: 0x0006B0E1 File Offset: 0x000692E1
		public int needTime { get; set; }

		// Token: 0x170002A5 RID: 677
		// (get) Token: 0x060009FA RID: 2554 RVA: 0x0006B0EC File Offset: 0x000692EC
		public string Time
		{
			get
			{
				return string.Format("{0:00}:{1:00}:{2:00}", this.needTime / 3600, this.needTime % 3600 / 60, this.needTime % 3600 % 60);
			}
		}

		// Token: 0x170002A6 RID: 678
		// (get) Token: 0x060009FB RID: 2555 RVA: 0x0006B13C File Offset: 0x0006933C
		// (set) Token: 0x060009FC RID: 2556 RVA: 0x0006B144 File Offset: 0x00069344
		public int bigSuccessRate { get; set; }

		// Token: 0x170002A7 RID: 679
		// (get) Token: 0x060009FD RID: 2557 RVA: 0x0006B150 File Offset: 0x00069350
		public string Res
		{
			get
			{
				return string.Format("油:{0}  弹:{1}  钢:{2}  铝:{3}  ", new object[]
				{
					this.award.ContainsKey("2") ? this.award["2"] : 0,
					this.award.ContainsKey("3") ? this.award["3"] : 0,
					this.award.ContainsKey("4") ? this.award["4"] : 0,
					this.award.ContainsKey("9") ? this.award["9"] : 0
				});
			}
		}

		// Token: 0x170002A8 RID: 680
		// (get) Token: 0x060009FE RID: 2558 RVA: 0x0006B221 File Offset: 0x00069421
		public string Goods
		{
			get
			{
				return string.Join(",", this.pruductGoods.Select(new Func<int, string>(Extensions.ConvertItemName)));
			}
		}

		// Token: 0x170002A9 RID: 681
		// (get) Token: 0x060009FF RID: 2559 RVA: 0x0006B244 File Offset: 0x00069444
		public string ShipType
		{
			get
			{
				return string.Join(", ", from i in this.needShipType
				select string.Format("{0}={1}", i.type.ToName(), i.num));
			}
		}
	}
}
